package java8;

import java.util.Scanner;

public class Code104 {
	public static void main(String[] args) {
		int[] scores = new int[5];
		int sum = 0;
		Scanner input=new Scanner(System.in);
		System.out.println("请输入5位学员的成绩:");
		for(int i=0;i<scores.length;i++){
			System.out.println("第"+(i+1)+"位学员的成绩是:");
			scores[i]=input.nextInt();
			sum=sum+scores[i];		
		}
		System.out.println("学员的平均分是:"+(double)sum/scores.length);
	}
}
